home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 9222 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  965 b 

  1. Path: news.ov.com!news
  2. From: glenn@ov.com (Fletcher.Glenn@ov.com)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: Command line arguments
  5. Date: 8 Mar 1996 21:21:42 GMT
  6. Organization: OpenVision
  7. Message-ID: <4hq8d6$1k1@spanky.pls.ov.com>
  8. References: <4hjmpi$cuc_003@res-hall.nwu.edu>
  9. Reply-To: glenn@ov.com
  10. NNTP-Posting-Host: foghorn.pls.ov.com
  11.  
  12. In article 003@res-hall.nwu.edu, sen@nwu.edu (Subhro K. Sen) writes:
  13. >I want to pass a filename to a C program for reading (and or writing).
  14. >How do I grab this command line argument from within the program?
  15. >
  16. >Thanks!
  17. >
  18. >
  19. >--
  20. >sen@nwu.edu                                         s u b h r o  s e n
  21. >http://www.eecs.nwu.edu/~sksen/                northwestern university
  22. >PGP key: finger sksen@merle.acns.nwu.edu      2245 sheridan road, #409
  23. >phone: (847)332-5252                          evanston, illinois 60201
  24.  
  25.  
  26.  
  27. In your C language textbook, look up argc and argv, the main routine
  28. default arguments.
  29.  
  30.             Fletcher.Glenn@ov.com
  31.  
  32.